package com.fjec.devops.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.common.annotation.OpeLog;
import com.fjec.common.protocol.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fjec.devops.service.IBizYsOfflineRegResultService;

import javax.annotation.Resource;

/**
 * <p>
 * 024.银盛线下进件结果表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2020-11-23
 */
@RestController
@RequestMapping("/")
public class BizYsOfflineRegResultController {

    @Resource
    private IBizYsOfflineRegResultService service;

    /**
     * 保存银盛线下进件上传文件信息
     *
     * @param fileId
     * @param fileName
     * @return
     */
    @OpeLog(desc = "保存银盛线下进件上传文件信息")
    @PostMapping("/y/ys/save/offline/reg/result")
    public JsonResult saveYsOfflineRegResult(Long fileId, String fileName) {
        return service.saveYsOfflineRegResult(fileId, fileName);
    }

    /**
     * 分页查询银盛线下进件结果
     *
     * @param page
     * @return
     */
    @GetMapping("/y/ys/get/offline/reg/result/list")
    public JsonResult getEntityListPage(Page page) throws Exception {
        return service.getEntityListPage(page);
    }
}
